package com.mark.springsecurity.dto.req;

import com.mark.springsecurity.domain.SysAuthority;
import lombok.Data;

@Data
public class SysAuthorityCmd {

    private String name;

    private String value;

    public static SysAuthority buildSysAuthority(SysAuthorityCmd sysAuthorityCmd) {
        return SysAuthority.builder()
                .name(sysAuthorityCmd.getName())
                .value(sysAuthorityCmd.getValue())
                .build();

    }
}
